home *** CD-ROM | disk | FTP | other *** search
/ Amiga Tools 2 / Amiga Tools 2.iso / tex / macros / packages / dviwindo.def < prev    next >
Encoding:
Text File  |  1995-03-15  |  3.3 KB  |  113 lines

  1. %% 
  2. %% This is file `dviwindo.def', generated on <1995/3/4> 
  3. %% with the docstrip utility (2.2i).
  4. %% 
  5. %% The original source files were:
  6. %% 
  7. %% drivers.dtx  (with options: `dviwindo,colorfix,tiffrules,dosrules,psrules')
  8. %% 
  9. %% IMPORTANT NOTICE:
  10. %% You are not allowed to distribute this file.
  11. %% For distribution of the original source see
  12. %% the copyright notice in the file drivers.dtx .
  13. %% 
  14. %% drivers.dtx Copyright (C) 1994 David Carlisle Sebastian Rahtz
  15. %%
  16. %% This file is part of the Standard LaTeX `Graphics Bundle'.
  17. %%
  18. %% It should be distributed *unchanged* and together with all other
  19. %% files in the graphics bundle. The file 00readme.txt contains a list
  20. %% of all of these files.
  21. %%
  22. %% A modified version of this file may be distributed, but it should
  23. %% be distributed with a *different* name. Changed files must be
  24. %% distributed *together with a complete and unchanged* distribution
  25. %% of these files.
  26. %%
  27. \ProvidesFile{dviwindo.def}
  28.         [1994/12/12 v2.6 Driver-dependant file (DPC,SPQR)]
  29. \AtBeginDocument{%
  30.   \let\@ldc@l@r\color
  31.   \def\color{\if@inlabel\leavevmode\fi\@ldc@l@r}%
  32.   \let\@ldtextc@l@r\textcolor
  33.   \def\textcolor{\if@inlabel\leavevmode\fi\@ldtextc@l@r}%
  34.   \let\@lduseb@x\usebox
  35.   \def\usebox#1{\@lduseb@x{#1}\set@color}}
  36. \def\Ginclude@eps#1{%
  37. \message{<#1>}%
  38.   \raise\Gin@req@height\hbox{%
  39.       \special{ps::[begin]
  40.       \number\Gin@req@width\space
  41.       \number\Gin@req@height\space
  42.       \number\Gin@llx\space
  43.       \number\Gin@lly\space
  44.       \number\Gin@urx\space
  45.       \number\Gin@ury\space startTexFig}%
  46.     \special{ps: plotfile #1}%
  47.     \ifGin@clip\special{ps:: doclip}\fi
  48.     \special{ps::[end] endTexFig}%
  49.   }%
  50. }
  51. \def\Ginclude@tiff#1{%
  52. \message{<#1>}%
  53.  \special{insertimage: #1 \number\Gin@req@width\space
  54.      \number\Gin@req@height}%
  55. }
  56. \def\set@color{%
  57.   \special{textcolor: \current@color}%
  58.   \special{rulecolor: \current@color}%
  59.   \aftergroup\reset@color
  60. }
  61. \def\reset@color{%
  62.  \special{textcolor: \current@color}%
  63.  \special{rulecolor: \current@color}%
  64. }
  65. \def\set@page@color{%
  66.   \c@lor@special\sixt@@n{background color ignored: \current@color}}
  67. \def\color@RGB#1#2{\c@lor@RGB@#1#2\@@}
  68. \def\c@lor@RGB@#1#2,#3,#4\@@{%
  69.   \edef#1{#2 #3 #4}}
  70. \def\c@lor@rgb@RGB#1{%
  71.   \dimen@#1\p@
  72.   \dimen@255\dimen@
  73.   \@settopoint\dimen@
  74.   \edef\@tempa{\@tempa,\strip@pt\dimen@}}
  75. \def\c@lor@rgb#1#2{\c@lor@rgb@#1#2\@@}
  76. \def\c@lor@rgb@#1#2,#3,#4\@@{%
  77.   \let\@tempa\@gobble
  78.   \c@lor@rgb@RGB{#2}%
  79.   \c@lor@rgb@RGB{#3}%
  80.   \c@lor@rgb@RGB{#4}%
  81.   \expandafter\color@RGB\expandafter#1\expandafter{\@tempa}}
  82. \def\cmyk@rgb#1{%
  83.   \dimen@#1\p@
  84.   \advance\dimen@\@tempdima
  85.   \ifdim\dimen@>\p@
  86.     \dimen@\z@
  87.   \else
  88.     \advance\dimen@-\p@
  89.     \dimen@-\dimen@
  90.   \fi
  91.   \edef\@tempa{\@tempa,\strip@pt\dimen@}}
  92. \def\color@cmyk#1#2{\c@lor@cmyk@#1#2\@@}
  93. \def\c@lor@cmyk@#1#2,#2,#3,#4,#5\@@{%
  94.   \@tempdima#5\p@
  95.   \let\@tempa\@gobble
  96.   \cmyk@rgb{#2}%
  97.   \cmyk@rgb{#3}%
  98.   \cmyk@rgb{#4}%
  99.   \expandafter\color@rgb\expandafter#1\expandafter{\@tempa}}
  100. \def\current@color{0 0 0 }
  101. \def\Gin@extensions{.eps,.ps}
  102. \@namedef{Gin@rule@.ps}#1{{eps}{.ps}{#1}}
  103. \@namedef{Gin@rule@.eps}#1{{eps}{.eps}{#1}}
  104. \@namedef{Gin@rule@*}#1{{eps}{\Gin@ext}{#1}}
  105. \def\Gin@extensions{.eps,.ps,.pcx,.bmp}
  106. \@namedef{Gin@rule@.pcx}#1{{bmp}{}{#1}}
  107. \@namedef{Gin@rule@.bmp}#1{{bmp}{}{#1}}
  108. \@namedef{Gin@rule@.msp}#1{{bmp}{}{#1}}
  109.  \@namedef{Gin@rule@.tif}#1{{tiff}{}{#1}}
  110. \endinput
  111. %% 
  112. %% End of file `dviwindo.def'.
  113.